package com.tnf.bc.bground.common.utils.resultutil;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @description: //web工具类
 * @author: lzl
 * @create: 2022-11-23 20:37
 **/
public class WebUtils {

    public static String rendrString(HttpServletResponse httpServletResponse, String str) {
        try {
            httpServletResponse.setStatus(200);
            httpServletResponse.setContentType("application/json");
            httpServletResponse.setCharacterEncoding("utf-8");
            httpServletResponse.getWriter().println(str);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}